﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;


namespace SQLServerHealthCheck.Model
{
    
    
    // Public Class for Tracing SQL Server Instances
    public class DatabaseTraceInstance : INotifyPropertyChanged
    {

        public event PropertyChangedEventHandler PropertyChanged;



        protected void OnPropertyChanged(string propName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propName));
            }
        }


        public int DatabaseTraceId { get; set; }

        // The database Name for a scheduled Trace
        private string _databaseName;
        public string DatabaseName
        {
            get { return _databaseName; }

            set
            {
                _databaseName = value;
                OnPropertyChanged("DatabaseName");
            }


        }
        // The start time for a schedule Trace
        private DateTime _startdateTime;
        public DateTime StartdateTime
        {
            get { return _startdateTime; }

            set
            {
                _startdateTime = value;
                OnPropertyChanged("StartdateTime");
            }


        }

        // The End time for a schedule Trace
        private DateTime _enddateTime;

        public DateTime EnddateTime
        {
            get { return _enddateTime; }

            set
            {
                _enddateTime = value;
                OnPropertyChanged("EnddateTime");
            }

        }


    }
    


}
